3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate points. See "Point Objects" for the definition of the point object.
You can use the Q3Point_New function to create a new point.
TQ3GeometryObject Q3Point_New (const TQ3PointData *pointData);
You can use the Q3Point_Submit function to submit an immediate point for drawing, picking, bounding, or writing.
TQ3Status Q3Point_Submit (
const TQ3PointData *pointData,
TQ3ViewObject view);
The Q3Point_Submit function submits for drawing, picking, bounding, or writing the immediate point whose location and attribute set are passed in the fields of the TQ3PointData structure pointed to by the pointData parameter. The point is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Point_GetData function to get the data that defines a point object and its attributes.
TQ3Status Q3Point_GetData (
TQ3GeometryObject point,
TQ3PointData *pointData);
The Q3Point_GetData function returns, through the pointData parameter, information about the position and attribute set of the point specified by the point parameter. QuickDraw 3D allocates memory for the TQ3PointData structure internally; you must call Q3Point_EmptyData to dispose of that memory.
You can use the Q3Point_SetData function to set the data that defines a point object and its attributes.
TQ3Status Q3Point_SetData (
TQ3GeometryObject point,
const TQ3PointData *pointData);
You can use the Q3Point_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Point_GetData .
TQ3Status Q3Point_EmptyData (TQ3PointData *pointData);
You can use the Q3Point_GetPosition function to get the position of a point.
TQ3Status Q3Point_GetPosition (
TQ3GeometryObject point,
TQ3Point3D *position);
You can use the Q3Point_SetPosition function to set the position of a point.
TQ3Status Q3Point_SetPosition (
TQ3GeometryObject point,
const TQ3Point3D *position);
Previous | QD3D Book | Overview | Chapter Contents | Next |